home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
acctg
/
nonpr_gl
/
hinstall.bat
< prev
next >
Wrap
DOS Batch File
|
1989-08-20
|
1KB
|
44 lines
echo off
if %2x == x goto instruct
echo This installs the Nonprofit General Ledger program and documentation
echo from a floppy disk in drive %1: to a hard disk, drive %2:.
echo
echo If this is NOT what you wish to do, press the Ctrl key and the C key
echo at the same time, and then type Y. Otherwise
pause
echo
echo OK, here we go. If you see error messages, enter %0 with
echo no other parameters to see instructions and then try again.
echo
echo First we'll make the directory %2:\NGL. Don't worry if you see
echo "Unable to create directory." That means the directory already exists.
echo
md %2:\NGL > nul
echo
echo Now we'll extract the program and documentation from the archive file.
%1:arce %1:ngl112 %2:\NGL
if errorlevel 1 goto badarce
goto goodarce
:badarce
echo
echo ERROR -- ARCHIVE EXTRACTION FAILED
echo Enter %0 to see instructions and then try again.
goto end
:goodarce
cd %2:\NGL
%2:
echo
echo Installation complete. The program is on drive %2 in the subdirectory NGL.
echo You are now in %2:\NGL. Read the manual, NGL111.DOC.
goto end
:instruct
echo
echo Oops -- you must enter two letters after %0. Type letters only,
echo no colons, and separate %0 and the letters with spaces.
echo The first letter is the floppy disk drive you are installing FROM.
echo The second letter is the hard disk you are installing TO.
echo For instance, to install from drive A: to drive C:, Enter:
echo
echo %0 A C
:end